<form id="enough-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input name="row[id]" type="hidden" value="{$row.id}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">满减配置:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" data-name="row[config]">
                <dd>
                    <ins>满</ins>
                    <ins>减</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a></dd>
                <textarea data-rule="required" name="row[config]" class="form-control hide" cols="30" rows="5">{$row.config}</textarea>
            </dl>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">截止日期:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[end_date]" type="text" placeholder="不填则一直有效" value="{$row.end_date}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">是否启用:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[status]-0"><input id="row[status]-0" name="row[status]" type="radio" value="0" {if !$row.status}checked{/if} /> 禁用</label>
                <label for="row[status]-1"><input id="row[status]-1" name="row[status]" type="radio" value="1" {if $row.status}checked{/if} /> 启用</label>
            </div>
        </div>
    </div>

    <div class="form-group layer-footer">
        <div class="text-center">
            <button type="submit" class="btn btn-success btn-embossed disabled">提交</button>
            <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">关闭</button>
        </div>
    </div>
</form>
